package ciicos.check.service.impl;

import ciicos.check.entity.CheckPlanTimeEntity;
import ciicos.check.mapper.CheckPlanTimeMapper;
import ciicos.check.model.checkplan.CheckPlanPagination;
import ciicos.check.service.CheckPlanTimeService;
import ciicos.permission.service.AuthorizeService;
import ciicos.util.GeneraterSwapUtil;
import ciicos.util.ServletUtil;
import ciicos.util.UserProvider;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * 巡检计划
 * 版本： V3.2.0
 * 版权：
 * 作者： 产研项目租
 * 日期： 2023-08-16
 */
@Service
public class CheckPlanTimeServiceImpl extends ServiceImpl<CheckPlanTimeMapper, CheckPlanTimeEntity> implements CheckPlanTimeService {



        @Autowired
        private GeneraterSwapUtil generaterSwapUtil;

        @Autowired
        private UserProvider userProvider;

        @Autowired
        private AuthorizeService authorizeService;
@Override
public QueryWrapper<CheckPlanTimeEntity> getChild(CheckPlanPagination pagination, QueryWrapper<CheckPlanTimeEntity> checkPlanTimeQueryWrapper){
    boolean pcPermission = true;
    boolean appPermission = false;
    boolean	isPc = ServletUtil.getHeader("ciicos-origin").equals("pc");
    if(isPc){
        }

    if(!isPc){
        }
        return checkPlanTimeQueryWrapper;
		}

}
